﻿<Window x:Class="MyRecipeBook.UI.Windows.WindowIngredient"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Ingredient" Height="191" Width="308" WindowStyle="ToolWindow" ShowInTaskbar="False" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        
        <Label Grid.Row="0" Content="Ingredient" Foreground="White" FontSize="24">
            <Label.Background>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                    <GradientStop Color="SteelBlue" Offset="0" />
                    <GradientStop Color="#FF7777FF" Offset="1" />
                </LinearGradientBrush>
            </Label.Background>
        </Label>
        
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            
            <Label Grid.Row="0" Grid.Column="0" Content="Name" Margin="5" />
            <TextBox Grid.Row="0" Grid.Column="1" Name="TextBoxName" Margin="5" BorderBrush="Black" />
            
            <Label Grid.Row="1" Grid.Column="0" Content="Type" Margin="5" />
            <ComboBox Grid.Row="1" Grid.Column="1" Name="ComboBoxType" Margin="5" />

            <Grid Grid.Row="2" Grid.Column="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                
                <Button Grid.Column="0" Name="ButtonSave" Content="Save" Margin="5" Padding="5,0" />
                <Button Grid.Column="1" Name="ButtonCancel" Content="Cancel" Margin="5" Padding="5,0" Click="ButtonCancel_Click" />
            </Grid>
        </Grid>
    </Grid>
</Window>

    